#include "MoveGenerator.h"



MoveGenerator::MoveGenerator() {
}


MoveGenerator::~MoveGenerator() {}


int MoveGenerator::createPossibleMove(CHESS_COLOR(&chessmen)[GRID_NUM][GRID_NUM],int depth) {
	//int r1 = 0, c1 = 0, r2 = 0, c2 = 0, r = 0, c = 0;

	//int qiju[15][15][8][2];
	//fillMatrix(qiju, 0);
	//howManyInLine(chessmen, qiju);
	//valueTheChessboardNavie(chessmen, qiju);
	int row, col;
	moveCount = 0;
	for (row = 0; row < GRID_NUM; ++row) {
		for (col = 0; col < GRID_NUM; ++col) {
			if (chessmen[row][col] == N) {
				moveList[depth][moveCount].pos.row = row;
				moveList[depth][moveCount].pos.col = col;

				moveList[depth][moveCount].value = PosValue[row][col];
				++moveCount;
			}
		}
	}
	return moveCount;
}